package com.qsl.system.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qsl.common.result.Result;
import com.qsl.model.system.SysOperLog;
import com.qsl.model.vo.SysOperLogQueryVo;
import com.qsl.system.service.SysOperLogService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "操作日志")
@RestController
@RequestMapping("/admin/system/sysOperLog")
public class SysOperLogController {


    @Autowired
    private SysOperLogService sysOperLogService;

    @ApiOperation("条件分页查询")
    @GetMapping("{page}/{limit}")
    public Result getCountPage(@PathVariable Integer page
            , @PathVariable Integer limit
            , SysOperLogQueryVo OperLogVo) {
        IPage<SysOperLog> pageMode = sysOperLogService.selectPage(page, limit, OperLogVo);
        return Result.ok(pageMode);
    }


}
